{php}
    $upload_image_ext  = config("app.site_setting.upload_image_ext");
    $upload_image_size = config("app.site_setting.upload_image_size");
{/php}
<div class="form-group col-md-12 {$form[type].extra_class|default=''}" id="form_group_{$form[type].name}">
  <label for="{$form[type].name}">{$form[type].title}</label>
  <div class="js-upload-image">
    <ul id="file_list_{$form[type].name}" class="list-inline row lyear-uploads-pic mb-0">    
      {notempty name="form[type].value"}
        {volist name="form['value']|explode=',',###" id="vo"}
        <li class="col-6 col-sm-3 col-md-2 list-images-item">
          <figure>
            <img src="{$vo|get_thumb}" />
            <figcaption>
              <a class="btn btn-round btn-square btn-primary btn-link-pic" href="{$vo|get_file_path}"><i class="mdi mdi-eye"></i></a>
              <a class="btn btn-round btn-square btn-danger btn-remove-pic" data-id="{$vo}"><i class="mdi mdi-delete"></i></a>
            </figcaption>
          </figure>
        </li>
        {/volist}
      {/notempty}
    </ul>
    <input type="hidden" name="{$form[type].name}" data-multiple="true" data-size="{$form[type]['size']|default=$upload_image_size}" data-ext='{$form[type]["ext"]|default="$upload_image_ext"}' id="{$form[type].name}" value="{$form[type].value|default=''}">
    <div id="picker_{$form[type].name}">上传多张图片</div>
    {notempty name="form[type].remark"}
    <small class="form-text text-muted">{$form[type].remark|raw|clear_js}</small>
    {/notempty}
  </div>
</div>
{assign name="useMagnificPopup" value="1" /}
{assign name="useWebuploader" value="1" /}
{assign name="useWebuploaderImages" value="1" /}